<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Login extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->helper('url');
        $this->load->helper('file');
        $this->load->database();
        $this->load->library('topclass');
        
        
    }
    

    public function index() {
        if (isset($_SESSION["statue"])) {
            $url = site_url("display/show");
            redirect($url, 'location');
        }
        	$data['menu'] = 'login';
		$this->load->view('header_view',$data);
		$this->load->view('login_view');
		$this->load->view('footer_view');
     
    }
    
       public function logout() {
       $this->load->helper('url');
       unset($_SESSION["statue"]);
       redirect('/login', 'refresh');
 
           
    }
    



}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */